﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="mgrTeams.aspx.cs" Inherits="WebUI.Pages.mgrTeams" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphTop" runat="server">
    <asp:Label ID="lblMsg" runat="server"></asp:Label>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphContent" runat="server">
    <div id="content">
        <div id="new">
            <h2>Gerenciar Times</h2>
            <table>
                <tr>
                    <td>Nome:</td>
                    <td><asp:TextBox ID="txtNome" runat="server" Width="200px"></asp:TextBox></td>
                    <td></td>
                </tr>
                <tr>
                    <td>Gestor:</td>
                    <td><asp:DropDownList ID="ddlGestor" runat="server" Width="200px"></asp:DropDownList></td>
                    <td></td>
                </tr>
                <tr>
                    <td></td>
                    <td></td>
                    <td><asp:Button ID="cmdNovo" runat="server" Text="Novo" onclick="cmdNovo_Click" /></td>
                </tr>
            </table>
        </div>
        <div id="search">
            <asp:Repeater ID="rpTeams" runat="server" onitemcommand="rpTeams_ItemCommand">
        
            <HeaderTemplate>
                <table id="tablegrid" width="400px">
                    <thead>
                        <th scope="col">idTime</th>
                        <th scope="col">Nome</th>
                        <th scope="col">Gestor</th>
                        <th scope="col"></th>
                    </thead>
                    <tbody>
            </HeaderTemplate>
            
            <ItemTemplate>
                <tr>
                    <td> <%# Eval("idTime") %> </td>
                    <td> <%# Eval("DescTime") %></td>
                    <td> <%# Eval("Gestor") %> </td>
                    <td><asp:Button runat="server" ID="cmdEdit" CommandName="cmdEdit" CommandArgument= <%# Eval("idTime") %> Text="Editar"/></td>
                </tr>
            </ItemTemplate>
                
            <FooterTemplate>
                    </tbody>
                </table>
            </FooterTemplate>
        
            </asp:Repeater>
        </div>
    </div>
</asp:Content>
